package com.ttloner.springboot.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author TTLoner
 * @date 2021/7/17 19:56
 * @description
 */

public class MyUser {
    private Integer pid;
    private String username;
    private String password;
    private String p_addr;
    private Integer gender;
    private Date birth;

    public MyUser(Integer pid, String username, String password, String p_addr, Integer gender, Date birth) {
        this.pid = pid;
        this.username = username;
        this.password = password;
        this.p_addr = p_addr;
        this.gender = gender;
        this.birth = birth;
    }

    public MyUser() {
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getP_addr() {
        return p_addr;
    }

    public void setP_addr(String p_addr) {
        this.p_addr = p_addr;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "MyUser{" +
                "pid=" + pid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", p_addr='" + p_addr + '\'' +
                ", gender=" + gender +
                ", birth=" + birth +
                '}';
    }
}
